package com.ioCStudy.controller;

import com.ioCStudy.pojo.Student;
import com.ioCStudy.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudentController {

    @Autowired
    private StudentService studentService;

    /*
    public void setStudentService(StudentService studentService) {
        this.studentService = studentService;
    }
    */

    public void findAll() {
        List<Student> students = studentService.findAll();
        System.out.println("最终学员数据：" + students);
    }
}
